Skip to content

fix: replace hardcoded max-width in .ease-container with CSS variable#870

Open
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/container-max-width-variable-847
Open

fix: replace hardcoded max-width in .ease-container with CSS variable#870
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/container-max-width-variable-847

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

  • Added --ease-container-max: 1200px to core/variables.css
  • Updated .ease-container in core/utilities.css to use var(--ease-container-max)

Users can now override container width via
:root { --ease-container-max: 960px; }
without needing !important.

Closes #847

Pull Request Description

.ease-container had a hardcoded max-width: 1200px that could not be themed via CSS variables. This PR introduces --ease-container-max as a design token, making the container width fully customizable.


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

CSS variable theming fix for .ease-container.


Submission Checklist

⚠️ PRs that fail this checklist will be closed without review.

  • All changes are inside submissions/examples/your-feature-name/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Note: This PR changes core/ (variables.css and utilities.css) because it fixes a core framework issue, not a user submission. The submission checklist above does not apply directly.


Feature Description

What does this add?

CSS variable --ease-container-max (default 1200px) to make .ease-container width themable.

How does a developer use it?

/* Override in your own stylesheet */
:root {
  --ease-container-max: 960px;  /* blog layout */
}
Why does it fit EaseMotion CSS?
Every other token uses CSS variables — this makes .ease-container consistent with the framework's theming philosophy.
Demo
N/A — core framework fix, no new submission.
Browser Testing
- Chrome
- Firefox
- Edge
- Safari (optional but appreciated)
Notes for Maintainer
No behavior change by default — --ease-container-max defaults to 1200px, the original hardcoded value.

- Added --ease-container-max: 1200px to core/variables.css
- Updated .ease-container in core/utilities.css to use var(--ease-container-max)

Users can now override container width via
:root { --ease-container-max: 960px; }
without needing !important.

Closes SAPTARSHI-coder#847
@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder i fixed the your assigned issue so please check this

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 2, 2026
@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder
i fixed the issue so pls check it

1 similar comment
@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder
i fixed the issue so pls check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

### .ease-container Uses Hardcoded max-width: 1200px — Not Themable

2 participants